package Java_Concurrency_in_Practice.reentrant;

/** 对象重入 */
public class LoggingWidget extends Widget {

	@Override
	public synchronized void doSth() {
		String tname = Thread.currentThread().getName();
		System.out.println(tname + " sub do Sth ...");
		super.doSth();
	}
	
}
